package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.db.User;
import com.tanhua.model.mongo.RecommendUser;
import com.tanhua.model.vo.PageResult;

import java.util.List;


public interface RecommendUserApi {
    /**
     * 根据用户id返回一个缘分值最高的用户
     * @param loginUserId
     * @return
     */
    RecommendUser findMaxScore(Long loginUserId);


    /**
     * 根据当前用户id和佳人用户id查询RecommendUser
     * @param personUserId
     * @param userId
     * @return
     */
    RecommendUser findByUserId(Long personUserId, Long userId);

    PageResult<RecommendUser> findPageRecommendUser(Long loginUserId, Long page, Long pagesize);

    /**
     * 根据当前登录用户id查询RecommendUser表随机查10条数据
     * @param loginUserId
     * @return
     */
    List<RecommendUser> findCards(Long loginUserId);
}
